import Taro, { useState } from '@tarojs/taro';
import { ScrollView, View } from '@tarojs/components';
import { AtTimeline } from 'taro-ui';
import './index.less';
import NavBar from '../../../components/navBar';

const MyVersion = () => {
  const [item] = useState([
    {
      title: '2020-01-29 v0.01版本发布',
      content: ['兼容h5,rn,微信小程序', '首页添加 新闻模块'],
    },
  ]);
  return (
    <ScrollView>
      {process.env.TARO_ENV === 'h5' ? <NavBar title="版本更新历史" /> : null}
      <View className="container">
        <AtTimeline items={item}></AtTimeline>
      </View>
    </ScrollView>
  );
};
MyVersion.config = {
  navigationBarTitleText: '版本更新历史',
};

export default MyVersion;
